<?php
$upload_dir = 'uploads';

$targetPath = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . $upload_dir . DIRECTORY_SEPARATOR;

unlink($targetPath.$_POST['id']);
